package ui;

import java.awt.Color;
import java.awt.GridLayout;

import javax.swing.JPanel;

import draft.FantasyManager;
import draft.Team;

public class PlayerPanel extends JPanel{
	
	TeamPanel tp;
	
	public PlayerPanel(){
		setBackground(Color.WHITE);
		setLayout(new GridLayout(1, 2));
		add(new AvailablePlayerPanel(this));
		tp = new TeamPanel();
		add(tp);
		setVisible(true);
	}
	
	public void update(){
		Team currentPick = FantasyManager.league.teams[FantasyManager.currentTeam()];
		tp.update(currentPick);
	}
	
}